<?php
Route::group(['namespace' => 'Partner', 'middleware' => ['web']], function () {
    Route::any('admin/partner/list/ajax', 'PartnerAjaxController@dataList');                            //合伙人列表
    Route::get('admin/partner/create', 'PartnerController@create');                                     //添加合伙人
    // Route::post('admin/partner/create/save', 'PartnerController@createSave');                           //添加合伙人保存
    Route::get('admin/partner/edit/{id}', 'PartnerController@edit');                                    //修改合伙人
    // Route::post('admin/partner/edit/save/{id}', 'PartnerController@editSave');                          //修改合伙人保存
    Route::get('admin/partner/view/{id}', 'PartnerController@view');                                    //查看合伙人
    Route::post('admin/partner/delete', 'PartnerAjaxController@deleteData');                            //禁用/删除合伙人

    Route::post('admin/partner/create/save', 'PartnerAjaxController@createSave');  //添加合伙人操作
    Route::post('admin/partner/edit/save', 'PartnerAjaxController@editSave');  //修改合伙人操作

    Route::post('admin/vip/create/save', 'VipAjaxController@createSave');  //添加会员操作
    Route::post('admin/vip/edit/save', 'VipAjaxController@editSave');  //修改会员操作
    Route::post('admin/vip/list/data', 'VipAjaxController@listData');  //拉取会员套餐详情
    //---------------------------移动端---------------------------------
    Route::any('admin/moblie/list/ajax', 'ApiUserAjaxController@dataList');                            //移动端页面数据拉取
    Route::get('admin/mobile/index', 'ApiUserController@index');                                     //移动端页面
    Route::post('admin/mobile/view/info', 'ApiUserAjaxController@viewInfo');   //拉取移动端账号详情
    Route::get('admin/mobile/create', 'ApiUserController@create');                                             //添加移动端账号
    Route::get('admin/mobile/edit/{id}', 'ApiUserController@edit');                                            //修改移动端账号页面
    Route::get('admin/mobile/view/{id}', 'ApiUserController@view');                                            //查看移动端账号
    Route::post('admin/mobile/delete', 'ApiUserAjaxController@deleteData');                                     //禁用/删除移动端账号
    Route::post('admin/mobile/create/save', 'ApiUserAjaxController@createSave');  //添加移动端账号操作
    Route::post('admin/mobile/edit/save', 'ApiUserAjaxController@editSave');                                            //修改移动端账号页面

    Route::any('admin/vip/list/ajax', 'VipAjaxController@dataList');                                    //会员列表
    Route::get('admin/vip/create', 'VipController@create');                                             //添加会员
    // Route::post('admin/vip/create/save', 'VipController@createSave');                                   //添加会员保存
    Route::get('admin/vip/edit/{id}', 'VipController@edit');                                            //修改会员
    // Route::post('admin/vip/edit/save/{id}', 'VipController@editSave');                                  //修改会员保存
    Route::get('admin/vip/view/{id}', 'VipController@view');                                            //查看会员
//---------------------------------------------------------------------------------------11.04新增
    Route::get('admin/vip/keyword/{id}', 'VipController@keyword');                                            //查看会员的关键词
    Route::post('key/saveKey', 'VipAjaxController@saveKey');                                            //保存会员的关键词
    Route::post('key/list', 'VipAjaxController@getKey');                                            //拉取关键词列表
    Route::post('key/upStatus', 'VipAjaxController@upStatus');                                            //修改关键词状态
    Route::post('admin/vip/delete', 'VipAjaxController@deleteData');                                    //禁用/删除会员
    Route::post('admin/user/dataList', 'UserController@dataList');   //拉取授权信息
    Route::post('admin/vip/shoucang/data','VipAjaxController@ShoucangData');  //拉取会员收藏详情
    Route::post('admin/vip/shoucang/getvideoUrl/ajax','DouyinListAjaxController@getDyVideoinfo');  //获取会员收藏视频的无水印下载链接


    Route::post('admin/vip/leida/data','VipAjaxController@getLeidaData');  //拉取对应雷达数据
    Route::post('userinfo/get/comment','VipAjaxController@getVideoComment');//账户雷达
    Route::post('userinfo/get/status','VipAjaxController@commentStatus');//修改雷达状态

    Route::post('admin/vip/huoke/data','VipAjaxController@huokeData');  //拉取对应获客的数据


    Route::post('admin/partner/view/info', 'PartnerAjaxController@viewInfo');   //拉取合伙人详情
    //11.4 获取合伙人的对应会员号
    Route::post('admin/getvipinfo/data', 'PartnerAjaxController@countVipsInfo');   //获取对应合伙人的会员信息

    //11.9新增点击查看达人视频
    //  Route::any('talent/get/video','TalentController@getTalentVideo');//获取达人视频
    Route::any('admin/talent/list/video','PartnerAjaxController@getTalentVideo');//达人列表

    Route::post('admin/vip/view/info', 'VipAjaxController@viewInfo');   //拉取会员详情
    //8.31 实名审核
    Route::any('admin/real/index', 'PartnerController@realindex');   //实名审核页面拉取
    Route::any('admin/real/index/ajax', 'PartnerAjaxController@getRealInfo');   //实名审核页面数据获取
    Route::any('admin/real/list', 'PartnerController@reallist');   //实名审核列表
    Route::any('admin/real/list/ajax', 'PartnerController@reallist');   //实名审核页面数据获取

    Route::any('real/list/save', 'PartnerAjaxController@realSave');   //实名审核修改
    Route::any('real/list/searchAll', 'PartnerAjaxController@searchAll');   //实名审核页面数据获取

    //----9.23----爆店码视频审核
    Route::any('exp/video/data/ajax', 'PartnerAjaxController@getViedeoData');   //爆店码视频审核页面数据获取
    Route::any('exp/video/info/ajax', 'PartnerAjaxController@getViedeoInfo');   //爆店码视频页面数据获取
    Route::any('exp/video/save', 'PartnerAjaxController@expVideoSave');   //爆店码视频审核保存

    //10.19 咨询管理栏目
    Route::any('admin/partner/consulting/index', 'PartnerController@consultingLndex');   //官网咨询页面
    Route::any('admin/partner/consulting/index/ajax', 'PartnerAjaxController@consultingData');   //官网咨询页面数据获取
    Route::any('admin/partner/consulting/change', 'PartnerAjaxController@consultingChange');   //官网咨询页面数据状态修改
    Route::any('admin/partner/consulting/photo', 'PartnerController@photoLndex');   //轮播图页面
    Route::any('admin/partner/consulting/photo/ajax', 'PartnerAjaxController@photoData');   //轮播图页面数据获取
    Route::any('admin/partner/consulting/photo/change', 'PartnerAjaxController@photoChange');   //修改状态（删除）
    Route::any('admin/partner/consulting/photo/qnsc', 'PartnerAjaxController@qiniuUploadReal');   //上传图片


    Route::post('admin/partner/save/charging', 'PartnerAjaxController@saveCharging');   //合伙人充值
});

Route::group(['namespace' => 'Partner', 'middleware' => ['admin']], function () {
    Route::get('admin/partner/list', 'PartnerController@index');                                        //合伙人列表
    Route::get('admin/vip/list', 'VipController@index');                                                //会员列表
    Route::get('admin/user/index', 'UserController@index');    //抖音授权账户
});



Route::group(['namespace' => 'Partner', 'middleware' => ['web']], function () {
	Route::post('partner/deck/list', 'DeckController@deckList');		//贴牌管理
	Route::post('partner/deck/save', 'DeckController@saveDeck');		//保存贴牌
});